package pool;

import java.lang.reflect.Array;
import java.util.Arrays;

/**
 * @author:Administrator
 * @date:2022/1/16
 * @describe: 常量池
 */
public class StaticPools {

    public static void main(String[] args) {
        String str = "abc";
        MyMath mm = new MyMath();
        int[] array = {2, 8, 5, 0, 7, 1, 67};
        Arrays.sort(array);

        System.out.println(str);
        System.out.println(mm.number);
        for (int i = 0; i < array.length; i++) {
            System.out.print(array[i] + " ");
        }

        String str2 = "abc";
        System.out.println();
        if (str.equals(str2)) {
            System.out.println("值相同");
        } else {
            System.out.println("值不同");
        }

        if (str == str2) {
            System.out.println("ok");
        }
    }
}
